#include <iostream>
using std::cout;
using std::endl;

class Base
{
public:
    Base(int i = 0)
    :_base(i)
    {}

    Base operator+(const Base & rhs){
        return Base(_base + rhs._base);
    }

    bool operator==(int rhs){
        return !(_base == rhs);
    }



private:
    int _base;
};

void test0(){
    int i = 2;
    int j = 7;

    Base x(i);
    Base y(j);

    cout << (x+y == j-i) << endl;
}

int main(int argc, char * argv[])
{
    test0();
    return 0;
}


